package me.luger.project.fof.entity;


import me.luger.core.dao.nutz.entity.BaseEntity;
import org.nutz.dao.entity.annotation.*;
import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

@Table("sys_menu")
public class SysMenu extends BaseEntity implements Serializable{
private static final long serialVersionUID=1L;


    /**
     * ID
     */
    @Id
    @Column("id")
    @Comment("ID")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer id;
    /**
     * 父级ID
     */
    @Column("parentId")
    @Comment("父级ID")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer parentId;
    /**
     * 菜单名称
     */
    @Column("name")
    @Comment("菜单名称")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String name;
    /**
     * 菜单别名
     */
    @Column("aliasName")
    @Comment("菜单别名")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String aliasName;
    /**
     * 资源类型
1：link
2：menu
     */
    @Column("type")
    @Comment("资源类型 1：link 2：menu")
    @ColDefine(type = ColType.INT, width = 3)
    private Integer type;
    /**
     * 菜单链接
     */
    @Column("href")
    @Comment("菜单链接")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String href;
    /**
     * 打开方式
data-pjax:用pjax方式打开
blank:新页面
self:当前页面

     */
    @Column("target")
    @Comment("打开方式 data-pjax:用pjax方式打开 blank:新页面 self:当前页面 ")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String target;
    /**
     * 菜单图标
     */
    @Column("icon")
    @Comment("菜单图标")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String icon;
    /**
     * 是否显示
0：不显示
1：显示
     */
    @Column("isShow")
    @Comment("是否显示 0：不显示 1：显示")
    @ColDefine(customType = "BIT", width = 0)
    private Boolean isShow;
    /**
     * 是否禁用
0：禁用
1：正常
     */
    @Column("disabled")
    @Comment("是否禁用 0：禁用 1：正常")
    @ColDefine(customType = "BIT", width = 0)
    private Boolean disabled;

    public void setId(Integer id){
        this.id=id;
    }
    public Integer getId(){
        return this.id;
    }

    public void setParentId(Integer parentId){
        this.parentId=parentId;
    }
    public Integer getParentId(){
        return this.parentId;
    }

    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return this.name;
    }

    public void setAliasName(String aliasName){
        this.aliasName=aliasName;
    }
    public String getAliasName(){
        return this.aliasName;
    }

    public void setType(Integer type){
        this.type=type;
    }
    public Integer getType(){
        return this.type;
    }

    public void setHref(String href){
        this.href=href;
    }
    public String getHref(){
        return this.href;
    }

    public void setTarget(String target){
        this.target=target;
    }
    public String getTarget(){
        return this.target;
    }

    public void setIcon(String icon){
        this.icon=icon;
    }
    public String getIcon(){
        return this.icon;
    }

    public void setIsShow(Boolean isShow){
        this.isShow=isShow;
    }
    public Boolean getIsShow(){
        return this.isShow;
    }

    public void setDisabled(Boolean disabled){
        this.disabled=disabled;
    }
    public Boolean getDisabled(){
        return this.disabled;
    }


}